package com.hyh.mall.service.impl;

import com.hyh.mall.dao.UserMapper;
import com.hyh.mall.domin.MUser;
import com.hyh.mall.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public MUser queryUser(MUser mUser) {
        return userMapper.findMUser(mUser);
    }

    @Override
    public MUser queryUserByName(MUser mUser) {
        return userMapper.findMUserByName(mUser);
    }

    @Override
    public MUser saveUser(MUser mUser) {
        return userMapper.registName(mUser);
    }
}
